package cn.jy.machine.mapper;

import cn.jy.common.index.MapChart;
import cn.jy.common.machine.domain.ExpressVendingMachines;
import cn.jy.common.machine.domain.dto.ExpressVendingMachinesDto;
import cn.jy.common.machine.domain.vo.ExpressVendingMachinesVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author lenovo
* @description 针对表【express_vending_machines】的数据库操作Mapper
* @createDate 2024-08-22 16:53:18
* @Entity cn.jy.common.machine.domain.ExpressVendingMachines
*/
public interface ExpressVendingMachinesMapper {

    List<ExpressVendingMachinesDto> list(ExpressVendingMachinesVo vo);
    Integer count(ExpressVendingMachinesVo vo);

    @Select("select * from express_vending_machines where id = #{id}")
    ExpressVendingMachines findById(Integer id);

    void updateMachines(ExpressVendingMachines findById);

    void insert(ExpressVendingMachinesDto dto);

    @Select("select * from express_vending_machines where sn = #{sn}")
    ExpressVendingMachines selectMachineBySn(String sn);

    void save(ExpressVendingMachines machine);

    ExpressVendingMachinesDto findAllById(Integer id);

    List<MapChart> getMapChart();
}




